﻿@model List<e.Store.Model.Entities.LoadAllProductsResult>

<div id="productData" class="panel panel-danger">
    <div class="panel-heading">
        <h3 class="panel-title">Product List &nbsp;<span class="badge">@Model.Count()</span>
            <span class="pull-right">
                <a href="/Inventory/AddProduct " title="Add Product" class="btn-sm btn-primary">
                    <span class="btn-label"><i class="icon-plus"></i></span>Add Product </a>
            </span>



        </h3>
    </div>
    <div class="panel-body">
        <div class="table-responsive">
            <table id="myDataTable" class="table table-bordered table-responsive">
                <thead>
                    <tr>
                        <th>Sr No.
                        </th>
                        <th>Image
                        </th>
                        <th>Product Code
                        </th>
                        <th>Product Name
                        </th>
                        <th>Supplier
                        </th>
                        <th>Category
                        </th>
                        <th>Base Price
                        </th>
                        <th>Selling Price
                        </th>
                        <th>Quantity
                        </th>
                        <th>Discount
                        </th>
                        <th>Sales Tax (%)
                        </th>
                        <th>Active
                        </th>
                        <th style="text-align: center">Action
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr id="Row_@item.SupplierOID">
                            <td>@item.RowNumber</td>
                            <td>@item.Image</td>
                            <td>@item.ProductCode</td>
                            <td>@item.ProductName</td>
                            <td>@item.SupplierName</td>
                            <td>@item.CategoryName</td>
                            <td>@item.BasePrice</td>
                            <td>@item.SellingPrice</td>
                            <td>@item.Quantity</td>
                            <td>@item.Discount</td>
                            <td>@item.SalesTax</td>
                            <td>@item.Active</td>
                            <td style="text-align: center"><span><a href="/Inventory/EditProduct/@item.ProductOID " title="Edit Product" class="btn-sm btn-info"><i class="icon-pencil"></i></a></span></td>
                        </tr>
                    }

                </tbody>

            </table>
        </div>
    </div>
</div>
